package com.woniuxy.store.client;

import com.woniuxy.store.client.param.commentParam.CommentInfoSearchParamss;
import common.WoniuPage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient(contextId = "commentClient",name="store",path="/store/order")
public interface CommentClient {

    @GetMapping("/getCommentByStoreId")
    public Result getStoreCommentInfo(@SpringQueryMap CommentInfoSearchParamss commentInfoSearchParamss);

    @DeleteMapping("/delStoreComment")
    public Result delStoreComment(@RequestParam("commentId")Integer commentId);

}
